[INFO] cloning repository https://github.com/afurious/Rust_assignment_stephen
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/afurious/Rust_assignment_stephen" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fafurious%2FRust_assignment_stephen", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fafurious%2FRust_assignment_stephen'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 57b1c345e29145f0e75d1368af79283760278c2b
[INFO] checking afurious/Rust_assignment_stephen against 40527f3e444fde1deb361751bdef9b9e11d1b971+rustflags=--cfg crater_hack --force-warn invalid-c-variadic-arguments for pr-162478
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fafurious%2FRust_assignment_stephen" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/afurious/Rust_assignment_stephen
[INFO] finished tweaking git repo https://github.com/afurious/Rust_assignment_stephen
[INFO] tweaked toml for git repo https://github.com/afurious/Rust_assignment_stephen written to /workspace/builds/worker-4-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/afurious/Rust_assignment_stephen on toolchain 40527f3e444fde1deb361751bdef9b9e11d1b971
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+40527f3e444fde1deb361751bdef9b9e11d1b971" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/afurious/Rust_assignment_stephen already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+40527f3e444fde1deb361751bdef9b9e11d1b971" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:8683fc1fc2eb5c9ac98e0d076ab094b2ffac7f99da555d2b6a2e27f346de2ec7" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] f7584c9a69d1d5635e17ee472c9cae7eb476c22a425b517f4570f27de9fdc508
[INFO] running `Command { std: "docker" "start" "f7584c9a69d1d5635e17ee472c9cae7eb476c22a425b517f4570f27de9fdc508", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "f7584c9a69d1d5635e17ee472c9cae7eb476c22a425b517f4570f27de9fdc508", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "f7584c9a69d1d5635e17ee472c9cae7eb476c22a425b517f4570f27de9fdc508" "/opt/rustwide/cargo-home/bin/cargo" "+40527f3e444fde1deb361751bdef9b9e11d1b971" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "f7584c9a69d1d5635e17ee472c9cae7eb476c22a425b517f4570f27de9fdc508", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid --cfg crater_hack --force-warn invalid-c-variadic-arguments" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-w" "/opt/rustwide/workdir" "--user" "0:0" "f7584c9a69d1d5635e17ee472c9cae7eb476c22a425b517f4570f27de9fdc508" "/opt/rustwide/cargo-home/bin/cargo" "+40527f3e444fde1deb361751bdef9b9e11d1b971" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]     Checking assign1 v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused variable: `product`
[INFO] [stdout]   --> src/store.rs:18:38
[INFO] [stdout]    |
[INFO] [stdout] 18 |     pub fn new(id:u32, name: String, product: String, worker: String, warehouse: Warehouse) -> Store{
[INFO] [stdout]    |                                      ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_product`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `product`
[INFO] [stdout]   --> src/store.rs:18:38
[INFO] [stdout]    |
[INFO] [stdout] 18 |     pub fn new(id:u32, name: String, product: String, worker: String, warehouse: Warehouse) -> Store{
[INFO] [stdout]    |                                      ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_product`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `worker`
[INFO] [stdout]   --> src/store.rs:18:55
[INFO] [stdout]    |
[INFO] [stdout] 18 |     pub fn new(id:u32, name: String, product: String, worker: String, warehouse: Warehouse) -> Store{
[INFO] [stdout]    |                                                       ^^^^^^ help: if this is intentional, prefix it with an underscore: `_worker`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `worker`
[INFO] [stdout]   --> src/store.rs:18:55
[INFO] [stdout]    |
[INFO] [stdout] 18 |     pub fn new(id:u32, name: String, product: String, worker: String, warehouse: Warehouse) -> Store{
[INFO] [stdout]    |                                                       ^^^^^^ help: if this is intentional, prefix it with an underscore: `_worker`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `shifts`
[INFO] [stdout]   --> src/worker.rs:16:54
[INFO] [stdout]    |
[INFO] [stdout] 16 |     pub  fn new(id: u32, name:String, store_id: u32, shifts: Vec<Shift>) -> Worker {
[INFO] [stdout]    |                                                      ^^^^^^ help: if this is intentional, prefix it with an underscore: `_shifts`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `shifts`
[INFO] [stdout]   --> src/worker.rs:16:54
[INFO] [stdout]    |
[INFO] [stdout] 16 |     pub  fn new(id: u32, name:String, store_id: u32, shifts: Vec<Shift>) -> Worker {
[INFO] [stdout]    |                                                      ^^^^^^ help: if this is intentional, prefix it with an underscore: `_shifts`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `id`, `name`, `price`, and `quantity` are never read
[INFO] [stdout]  --> src/product.rs:5:8
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub struct Product {
[INFO] [stdout]   |            ------- fields in this struct
[INFO] [stdout] 5 |    pub id: u32,
[INFO] [stdout]   |        ^^
[INFO] [stdout] 6 |    pub name: String,
[INFO] [stdout]   |        ^^^^
[INFO] [stdout] 7 |   pub  price: f64,
[INFO] [stdout]   |        ^^^^^
[INFO] [stdout] 8 |   pub  quantity: u32,
[INFO] [stdout]   |        ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `Product` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `id`, `name`, `price`, and `quantity` are never read
[INFO] [stdout]  --> src/product.rs:5:8
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub struct Product {
[INFO] [stdout]   |            ------- fields in this struct
[INFO] [stdout] 5 |    pub id: u32,
[INFO] [stdout]   |        ^^
[INFO] [stdout] 6 |    pub name: String,
[INFO] [stdout]   |        ^^^^
[INFO] [stdout] 7 |   pub  price: f64,
[INFO] [stdout]   |        ^^^^^
[INFO] [stdout] 8 |   pub  quantity: u32,
[INFO] [stdout]   |        ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `Product` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated functions `get`, `update`, and `delete` are never used
[INFO] [stdout]   --> src/product.rs:24:12
[INFO] [stdout]    |
[INFO] [stdout] 12 | impl Product {
[INFO] [stdout]    | ------------ associated functions in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 24 |     pub fn get(vec: &Vec<Product>, id: u32) -> Option<&Product> {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 29 |     pub fn update(vec: &mut Vec<Product>, id: u32, name: String, price: f64, quantity: u32)  {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 40 |     pub fn delete(vec: &mut Vec<Product>, id: u32)  {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `id`, `name`, and `warehouse` are never read
[INFO] [stdout]   --> src/store.rs:9:8
[INFO] [stdout]    |
[INFO] [stdout]  8 |   pub struct Store {
[INFO] [stdout]    |              ----- fields in this struct
[INFO] [stdout]  9 |    pub id: u32,
[INFO] [stdout]    |        ^^
[INFO] [stdout] 10 |    pub name: String,
[INFO] [stdout]    |        ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 13 |    pub warehouse: Warehouse,
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Store` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `add_product` is never used
[INFO] [stdout]   --> src/store.rs:32:12
[INFO] [stdout]    |
[INFO] [stdout] 17 |   impl Store {
[INFO] [stdout]    |   ---------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 32 |     pub fn add_product(&mut self, product: Product) {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `clock_in` is never read
[INFO] [stdout]  --> src/shift.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub struct Shift {
[INFO] [stdout]   |            ----- field in this struct
[INFO] [stdout] 7 |     clock_in: SystemTime,
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `Shift` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `duration` is never used
[INFO] [stdout]   --> src/shift.rs:25:12
[INFO] [stdout]    |
[INFO] [stdout] 11 |   impl Shift {
[INFO] [stdout]    |   ---------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 25 |     pub fn duration(&self) -> Option<Duration> {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `get`, `update`, `delete`, and `current_shift` are never used
[INFO] [stdout]   --> src/worker.rs:27:13
[INFO] [stdout]    |
[INFO] [stdout] 14 |    impl Worker {
[INFO] [stdout]    |    ----------- associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 27 |      pub fn get(vec: &Vec<Worker>, id: u32)  {
[INFO] [stdout]    |             ^^^
[INFO] [stdout] ...
[INFO] [stdout] 31 |     pub fn update(vec: &mut Vec<Worker>, id: u32, name: String, store_id: u32, shifts: Vec<Shift>) {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 39 |     pub fn delete(vec: &mut Vec<Worker>, id: u32)  {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 55 |    pub fn current_shift(&self){
[INFO] [stdout]    |           ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated functions `get`, `update`, and `delete` are never used
[INFO] [stdout]   --> src/product.rs:24:12
[INFO] [stdout]    |
[INFO] [stdout] 12 | impl Product {
[INFO] [stdout]    | ------------ associated functions in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 24 |     pub fn get(vec: &Vec<Product>, id: u32) -> Option<&Product> {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 29 |     pub fn update(vec: &mut Vec<Product>, id: u32, name: String, price: f64, quantity: u32)  {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 40 |     pub fn delete(vec: &mut Vec<Product>, id: u32)  {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `id`, `name`, and `warehouse` are never read
[INFO] [stdout]   --> src/store.rs:9:8
[INFO] [stdout]    |
[INFO] [stdout]  8 |   pub struct Store {
[INFO] [stdout]    |              ----- fields in this struct
[INFO] [stdout]  9 |    pub id: u32,
[INFO] [stdout]    |        ^^
[INFO] [stdout] 10 |    pub name: String,
[INFO] [stdout]    |        ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 13 |    pub warehouse: Warehouse,
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Store` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `add_product` is never used
[INFO] [stdout]   --> src/store.rs:32:12
[INFO] [stdout]    |
[INFO] [stdout] 17 |   impl Store {
[INFO] [stdout]    |   ---------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 32 |     pub fn add_product(&mut self, product: Product) {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `clock_in` is never read
[INFO] [stdout]  --> src/shift.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub struct Shift {
[INFO] [stdout]   |            ----- field in this struct
[INFO] [stdout] 7 |     clock_in: SystemTime,
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `Shift` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `duration` is never used
[INFO] [stdout]   --> src/shift.rs:25:12
[INFO] [stdout]    |
[INFO] [stdout] 11 |   impl Shift {
[INFO] [stdout]    |   ---------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 25 |     pub fn duration(&self) -> Option<Duration> {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `get`, `update`, `delete`, and `current_shift` are never used
[INFO] [stdout]   --> src/worker.rs:27:13
[INFO] [stdout]    |
[INFO] [stdout] 14 |    impl Worker {
[INFO] [stdout]    |    ----------- associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 27 |      pub fn get(vec: &Vec<Worker>, id: u32)  {
[INFO] [stdout]    |             ^^^
[INFO] [stdout] ...
[INFO] [stdout] 31 |     pub fn update(vec: &mut Vec<Worker>, id: u32, name: String, store_id: u32, shifts: Vec<Shift>) {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 39 |     pub fn delete(vec: &mut Vec<Worker>, id: u32)  {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 55 |    pub fn current_shift(&self){
[INFO] [stdout]    |           ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused return value of `Option::<&T>::cloned` that must be used
[INFO] [stdout]   --> src/worker.rs:28:10
[INFO] [stdout]    |
[INFO] [stdout] 28 |          vec.iter().find(|s| s.id == id).cloned();
[INFO] [stdout]    |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `self` will be dropped if the result is not used
[INFO] [stdout]    = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 28 |          let _ = vec.iter().find(|s| s.id == id).cloned();
[INFO] [stdout]    |          +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused return value of `core::slice::<impl [T]>::last` that must be used
[INFO] [stdout]   --> src/worker.rs:56:8
[INFO] [stdout]    |
[INFO] [stdout] 56 |        self.shifts.last();
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 56 |        let _ = self.shifts.last();
[INFO] [stdout]    |        +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused return value of `Option::<&T>::cloned` that must be used
[INFO] [stdout]   --> src/worker.rs:28:10
[INFO] [stdout]    |
[INFO] [stdout] 28 |          vec.iter().find(|s| s.id == id).cloned();
[INFO] [stdout]    |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `self` will be dropped if the result is not used
[INFO] [stdout]    = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 28 |          let _ = vec.iter().find(|s| s.id == id).cloned();
[INFO] [stdout]    |          +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused return value of `core::slice::<impl [T]>::last` that must be used
[INFO] [stdout]   --> src/worker.rs:56:8
[INFO] [stdout]    |
[INFO] [stdout] 56 |        self.shifts.last();
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 56 |        let _ = self.shifts.last();
[INFO] [stdout]    |        +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.13s
[INFO] running `Command { std: "docker" "inspect" "f7584c9a69d1d5635e17ee472c9cae7eb476c22a425b517f4570f27de9fdc508", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "f7584c9a69d1d5635e17ee472c9cae7eb476c22a425b517f4570f27de9fdc508", kill_on_drop: false }`
[INFO] [stdout] f7584c9a69d1d5635e17ee472c9cae7eb476c22a425b517f4570f27de9fdc508
